package com.pig4cloud.pigx.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.system.entity.ArticleInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: 文章管理，处理所有文章
 * @Date: 2022/8/21 11:36
 */
@Mapper
public interface ArticleManagementMapper {
    /**
     * 分页查询
     *
     * @param page
     * @param articleInformation
     * @param param              排序参数
     * @return
     */
    List<ArticleInformation> getPage(@Param("page") Page page,
                                     @Param("articleInformation") ArticleInformation articleInformation,
                                     @Param("param") Map<String, Object> param);

    /**
     * 查询总条数
     *
     * @param articleInformation
     * @return
     */
    Integer getCount(@Param("articleInformation") ArticleInformation articleInformation);
}
